import request from "@/utils/request";

// 订单分页列表
export function getOrderPage(data) {
    return request({
        url: `/system/order/page`,
        method: "post",
        data
    });
}


// 获取辖区派出所2
export function getLookApi() {
    return request({
        url: `/system/personnel/selectPersonneCountList`,
        method: "get",
    });
}

// 上传文件后分页及异常信息
export function getPage(data) {
    return request({
        url: `/system/excel/page`,
        method: "post",
        data
    });
}


// 确认新增
export function save(unid) {
    return request({
        url: `/system/excel/save`,
        method: "get",
        params: {unid}
    });
}


// 删除
export function excelDel(query) {
    return request({
        url: `/system/excel/del`,
        method: "get",
        params: query
    });
}


// 协同订单列表
export function orderList(orderId) {
    return request({
        url: `/system/order/syner/list`,
        method: "get",
        params: {orderId}
    });
}

// 获取当前用户组织的下级单位
export function deptList() {
    return request({
        url: `/system/order/dept/list`,
        method: "get",
    });
}

// 核查反馈新增
export function insertAdd(data) {
    return request({
        url: `/system/order/insert`,
        method: "post",
        data
    });
}


// 任务分发
export function dispense(data) {
    return request({
        url: `/system/order/dispense`,
        method: "post",
        data
    });
}

// 订单数据
export function orderData() {
    return request({
        url: `/system/order/data`,
        method: "get",
    });
}

// 订单最近12个月数据
export function orderData12() {
    return request({
        url: `/system/order/data12`,
        method: "get",
    });
}


// 获取所有派出所
export function getDeptPolice() {
    return request({
        url: `/system/dept/police`,
        method: "get",
    });
}

// 核查反馈详情
export function getOrderDetail(orderId) {
    return request({
        url: `/system/order/detail/${orderId}`,
        method: "get",
    });
}



// 详情进度
export function getOrderSpeed(orderId) {
    return request({
        url: `/system/order/speed/${orderId}`,
        method: "get",
    });
}


// 是否重点人员
export function getKeynote(indo) {
    return request({
        url: `/system/api/keynote`,
        method: "get",
        params: indo
    });
}


// 将核查信息导入管控
export function exportgk(data) {
    return request({
        url: `/system/control/exportgk`,
        method: "post",
        data
    });
}


// 导出文件
export function downloadTemplate() {
    return request({
        responseType: "blob",
        url: "file/public/file",
        method: "get",
    });
}

